package com.hxf.dao.preferential;

import java.util.List;

import com.hxf.dao.BaseDao;
import com.hxf.dto.MealPreferentialDto;
import com.hxf.dto.RestaurantDto;
import com.hxf.dto.ReturnData;
import com.hxf.exception.DaoLevelException;
import com.hxf.web.vo.PreferentialVo;

/**
 * 
 * @author tengyicheng
 *
 */
public interface PreferentialDao extends BaseDao {
	/**
	 * 查询优惠信息 分页
	 * @param mealPreferentialDto
	 * @return
	 * @throws DaoLevelException
	 */
	public ReturnData<MealPreferentialDto> findMealPreferential(MealPreferentialDto mealPreferentialDto, int targetPage, int pageSize)throws DaoLevelException;
	
	/**
	 * 根据餐厅地址和优惠名搜索 优惠信息
	 * @param restaurantDto
	 * @param mealPreferentialDto
	 * @param targetPage
	 * @param pageSize
	 * @return
	 * @throws DaoLevelException
	 */
	public ReturnData<PreferentialVo> findMealPreferentialByRestaurant(RestaurantDto restaurantDto, MealPreferentialDto mealPreferentialDto, int targetPage, int pageSize)throws DaoLevelException;
	
	/**
	 * 根据菜肴ID查询 菜肴优惠信息
	 * @param mealMenuId
	 * @return
	 * @throws DaoLevelException
	 */
	public MealPreferentialDto findMealPreferentialByMealMenuId(Integer mealMenuId) throws DaoLevelException;
	
	/**
	 * 查询优惠信息
	 * @param mealPreferentialDto
	 * @return
	 * @throws DaoLevelException
	 */
	public List<MealPreferentialDto> findMealPreferential(MealPreferentialDto mealPreferentialDto) throws DaoLevelException;
	
}
